package com.geek.spring.single;

/**
 * @program java-spring
 * @description: 懒汉式
 * @author: chanzhugang
 * @create: 2021/04/18 23:41
 */
public class SingleDemo01 {


    private static SingleDemo01 instance;

    private SingleDemo01() {

    }

    public static SingleDemo01 getInstance() {
        if (instance == null) {
            instance = new SingleDemo01();
        }
        return instance;
    }
}